SetTitleMatchMode, 2
StringReplace, batname, A_ScriptFullPath, .ahk, .bat
F7::
IfWinActive ,WinEdt
{
	send {F8}
	run, "%batname%"
}
return